package io;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * 向文件fos.txt中写入26个字母
 */
public class Test {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("fos.txt");

        for (int i=0;i<26;i++){
            fos.write(97+i);
        }
        for (int i = 0; i <26 ; i++) {
            fos.write(65+i);
        }
        System.out.println("写出完毕");
        fos.close();
    }
}
